<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta charset="utf-8">
		<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/base.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/style.css">
		<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
		<title>账户管理-修改密码</title>
	</head>
	<body>
		<div class="page">
			<div class="header">
				<div class="header_top"></div>
				<div class="header_bottom clearfix">
					<div class="header_logo fl">
						<img src="${pageContext.request.contextPath}/images/images/index-logo.png">
					</div>
					<ul class="header_nav clearfix fl">
						<li>
							<a href="${pageContext.request.contextPath}/morder/waitOrderList.html" >订单管理</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/staff/queryAllList/1.html">家政人员管理</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/supplier/account.html" >财务管理</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath}/admin/accountInfo.html" class="on">账户管理</a>
						</li>
					</ul>
					<div class="header_user fr">
						<img src="${pageContext.request.contextPath}/images/images/user.png">欢迎您，<i>${ sessionScope.MANAGER_NAME} </i><a href="${pageContext.request.contextPath}/manager/loginout.html">【切换账号】</a>
					</div>
				</div>
			</div>
			<div class="main clearfix">
				<div class="main_menu fl">
					<div class="menu_name">
						<a href="${pageContext.request.contextPath}/admin/accountInfo.html">
							<img src="${pageContext.request.contextPath}/images/images/zh_zhxx.png">
							<p>账户信息</p>
						</a>
					</div>
					<div class="menu_name on">
						<a href="${pageContext.request.contextPath}/admin/editPwd.html">
							<img src="${pageContext.request.contextPath}/images/images/xgmm.png">
							<p>修改密码</p>
						</a>
					</div>
					<div class="menu_name">
						<a href="${pageContext.request.contextPath}/admin/agreementInfo.html">
							<img src="${pageContext.request.contextPath}/images/images/hzxy.png">
							<p>合作协议</p>
						</a>
					</div>
					
					<div class="menu_name">
						<a href="${pageContext.request.contextPath}/admin/supplierlist/1.html">
						<img src="${pageContext.request.contextPath}/images/images/zh_zhgl.png">
						<p>账号管理</p>
						</a>
					</div>		
					
				</div>
				<div class="main_cont fl">
					<div class="main_cont_top">
						<div class="main_inner">
							<div class="cont_top_title">当前位置：账户管理 > 修改密码</div>
						</div>
					</div>
					<div class="main_cont_bottom_password">
						<h3><img src="${pageContext.request.contextPath}/images/images/mima.png">修改密码</h3>
						<form action="${pageContext.request.contextPath}/admin/editPwd.html" method="post">
							<p class="xiugai"><span>原密码：</span><input type="password" class="input-text" placeholder="" name="wOldPassword"></p> 
							<p class="xiugai"><span>新密码：</span><input type="password" class="input-text" placeholder="" name="wAPassword" id="wAPassword" datatype="*8-20" nullmsg="密码不能为空"></p>
							<p class="xiugai"><span>重复密码：</span><input type="password" class="input-text" placeholder="" name="rePassword" id="rePassword" datatype="*8-20" nullmsg="密码不能为空"></p>
							<p class="xiugai_qr"><input type="submit" value="确认修改"></p>
						</form>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="${pageContext.request.contextPath}/lib/jquery/1.9.1/jquery.min.js?v=0.1"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/icheck/jquery.icheck.min.js?v=0.1"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/Validform/5.3.2/Validform.min.js?v=0.1"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/layer/2.1/layer.js?v=0.1"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/H-ui.js?v=0.1"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/js/H-ui.admin.js?v=0.1"></script>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-admin-edit").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(data){
			var index = parent.layer.getFrameIndex(window.name);
			parent.$('.btn-refresh').click();
			parent.layer.close(index);
		}
		
	});
	
	$("#rePassword").change(function() {
		var p1 = $("#wAPassword").val();
		var p2 = $("#rePassword").val();
		if(p1 != p2) {
			alert("两次密码不同");
		}
	});
});
</script>
	</body>
</html>